<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/admin.css" />
<script language="javascript" src="<?=gurl('js');?>/jq.js"></script>
<script language="javascript" src="<?=gurl('js');?>/common.js"></script>
</head>
<body>
	<h3 style="background:#E5ECF3; padding:5px; font-size:12px;">> <a href="<?=site_url(rnadminpath().'/main/show/main');?>">首页</a> > <a href="#">会员列表</a></h3>
	<div>
	<form method="GET" action="<?=gurl(rnadminpath().'/accounts/index/?');?>/">
		<input type="text" name="keyword" id="keyword" class="searchWord" value="<?=$keyword;?>" dataType="Require" msg="请输入关键字" />
		<input type="submit" value="搜索" class="searchIco" />
		<input type="hidden" name="dosubmit" id="dosubmit" value="1">
		&nbsp;
		会员人数统计：<strong><?=$total_rows;?></strong>
	</form>
	</div>
	<div style="margin-top:10px;padding:5px;border:1px solid #9FACB7;">
		<ul class="listmenu">
			<li style="width:60px;">选择</li>
			<li style="width:60px;">头像</li>
			<li>用户名</li>
			<li>身份</li>
			<li>Email</li>
			<li style="width:60px;">状态</li>
			<li class="lastitem">操作</li>
		</ul>
		<div class="clear"></div>
		<? if(is_array($items) && count($items)>0):?>
		<? foreach ($items as $item):?>
		<ul class="listitem">
			<li style="width:60px;"><input type="checkbox" name="id[]" id="id[]" value="<?=$item['id'];?>"></li>
			<li style="width:60px;"><img src="<?=gurl('data');?>/upload_pic/<?=$item['photo'];?>" onerror="this.onerror='';this.src='<?=gurl('images');?>/userlogo.gif';" width="40" height="40" /></li>
			<li><? if(isset($item['title'])):?><?=$item['title'];?><? else:?><?=$item['username'];?><? endif;?></li>
			<li><?=$item['hasite'];?></li>
			<li><?=$item['email'];?></li>
			<li style="width:60px;"><? if($item['status'] == 2):?><font color="red">屏蔽</font><? elseif($item['status'] == 3):?><font color="orange">限制</font><? else:?><font color="Green">正常</font><? endif;?></li>
			<li class="lastitem">
				<a href="<?=site_url(rnadminpath().'/accounts/show/'.$item['id']);?>">查看</a>
				<a href="<?=site_url(rnadminpath().'/accounts/edit/'.$item['id']);?>">编辑</a>
				<a href="<?=site_url(rnadminpath().'/accounts/delete/'.$item['id']);?>"  onclick="return confirm('确认删除吗');">删除</a>
			</li>
		</ul>
		<div class="clear"></div>
		<? endforeach;?>
		<? endif;?>
	</div>
	<div style="padding:5px;margin-top:10px;text-align:left;">
		<input type="button" onClick="checkall();" value="全选">
		<input type="button" onClick="delselected('<?=gurl(rnadminpath().'/accounts/statusselected');?>');" value="屏蔽">
		<input type="button" onClick="delselected('<?=gurl(rnadminpath().'/accounts/delselected');?>');" value="删除">
	</div>
	<div class="pagestring">
		<?=$pagestring;?>
	</div>
</body>
</html>
